using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StartUpPanel : MonoBehaviour
{
    [SerializeField]
    private Slider slider_Progress;
    [SerializeField]
    private Text text_tips;

    void Start()
    {
        slider_Progress.gameObject.SetActive(false);
        text_tips.text = string.Empty;
    }

    public void UpdateProgress(float progress)
    {
        if (slider_Progress.gameObject.activeSelf == false)
        {
            slider_Progress.gameObject.SetActive(true);
        }
        slider_Progress.value = progress;
    }

    public void ShowTips(string tips)
    {
        text_tips.text = tips;
    }


}
